package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class DeleteFridenMethods extends BaseMethods {

    private static DeleteFridenMethods m_ins = null;

    public static DeleteFridenMethods getInstance() {
        if (m_ins == null) {
            synchronized (DeleteFridenMethods.class) {
                if (m_ins == null) {
                    m_ins = new DeleteFridenMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Friend/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void friendDel(Subscriber<Object> subscriber,
                      int uid ,
                      String hashid  ,String fid) {
        Observable observable = initService().friendDel(System.currentTimeMillis()+"",
                "22342dc9735f400f99ad9c5d8e52bf7f",uid,hashid,fid
        );
        toSubscribe(observable, subscriber);
    }
}
